<?php
// test_user数据表代码生成配置文件
return
[
    'menuPid'=>39,
    'table'=>'test_user',// 基于此表构建 代码
    'prefix'=>'primary',
    'orderByDesc'=>'id',
    'modelName'=>'TestUser',//模块名
    'modelShowName'=>'测试用户',//HTML页面 显示的功能名称,例如: 订单, 相关名称有订单添加,订单编辑,订单删除,订单列表,订单管理, 同时,php代码中会有注释
    //字段处理
    "fields"=>
    [
        ['field'=>'age','type'=>'int','title'=>'年龄'],
        ['field'=>'name','type'=>'varchar','title'=>'姓名' ],
        ['field'=>'sex','type'=>'radio','title'=>'性别',"values"=>[['value'=>1,'title'=>'男'],['value'=>0,'title'=>'女']],'default'=>1],
        ['field'=>'city','type'=>'select','title'=>'城市',"values"=>[['value'=>1,'title'=>'上海'],['value'=>2,'title'=>'重庆']],'default'=>2],
        ['field'=>'likes','type'=>'checkbox','title'=>'爱好',"values"=>[['value'=>1,'title'=>'唱歌'],['value'=>2,'title'=>'rap'],['value'=>3,'title'=>'篮球']]],
        ['field'=>'birthday','type'=>'date','title'=>'生日'],
        ['field'=>'login_time','type'=>'datetime','title'=>'最后登录时间'],
        ['field'=>'introduction','type'=>'text','title'=>'个人介绍'],
    ],
    'functions'=> //功能
    [
        ['name'=>'model','path'=>'app/Models'],
        ['name'=>'dto','path'=>'app/DTOS/Admin','dtoList'=>['insertDTO','updateDTO','searchDTO']],
        ['name'=>'service','path'=>'app/Services','methods'=>['paginate','insert','updateById','deleteById','deleteByIds','getById']],
        ['name'=>'controller','path'=>'app/Http/Controllers/Admin','methods'=>['import','export','paginate','insert','update','delete','detail']],
        ['name'=>'layuiAdminPage',
            'output'=>'/code/xm2-admin/page/testUser',
            'pages'=>
            [
                ['page'=>'form','functions'=>[]],
                ['page'=>'index','functions'=>['import','export','insert','update','delete','batchDelete']],
            ]
        ],
        ['name'=>'route'],
        ['name'=>'menu','functions'=>['insert','update','delete','paginate','detail']],
    ],
];
// controller 中包应该含导入功能 , 默认xlsx导入,后期应该支持 csv , xls 导入
